
// 不符合报告及纠正措施

import request from '@/utils/request'

export function listcorrect(query) {
  return request({
    url: '/framework/correct/list',
    method: 'get',
    params: query
  })
}
export function selectList(query) {
  return request({
    url: '/framework/correct/listSelect',

    method: 'get',
    params: query
  })
}
export function delcorrect(compFeeIds) {
  return request({
    url: '/framework/correct/' + compFeeIds,
    method: 'delete'
  })
}
export function correctAdd(data) {
  return request({
    url: '/framework/correct',
    method: 'post',
    data: data
  })
}
export function updategcorrect(data) {
  return request({
    url: '/framework/correct',
    method: 'put',
    data: data
  })
}
export function correctInfo(query) {
  return request({
    url: '/framework/correct/' + query,
    method: 'get',
  })
}
// 启用禁用供应商
export function effectcorrect(id, effect) {
  console.log('11')
  return request({
    url: '/framework/correct/effect/' + id + '/' + effect,
    method: 'put',
  })
}